let mongoose = require('mongoose');
let mongoosePaginate = require('mongoose-paginate');//分页模块

var cate = new mongoose.Schema({
    name:String,
    contents:String,
    time:{ type: Date, default:Date.now()}
});
cate.plugin(mongoosePaginate);//分页
//3.创建model对象
module.exports = mongoose.model('pls',cate);
